package cn.test;

import cn.thread.MyThread;

public class ThreadPriority {
    public static void main(String[] args) {
        MyThread thread1=new MyThread();
        MyThread thread2=new MyThread();
        //设置线程优先级
        thread1.setPriority(1);
        thread2.setPriority(6);
        thread1.setName("线程1正常启动：");
        thread2.setName("线程2正常启动：");
        thread1.start();
        thread2.start();
    }
}
